<div ng-controller="HostActionBarCtrl" class="btn-toolbar server-btn-toolbar ui-toolbar">
    <div class="btn-group">
        <button type="button" ng-disabled="!selected_host||selected_host.deleted" class="btn btn-mini" ng-click="do_edit()">修改</button>
        <button type="button" ng-disabled="!selected_host||selected_host.instance_set.length>0||selected_host.deleted"
                class="btn btn-mini" ng-click="do_remove()">移除</button>
        <!--<button type="button" ng-disabled="true" class="btn btn-mini" ng-click="do_maintain()">维护</button>-->

    </div>
    <div class="btn-group">
        <button type="button" ng-disabled="!selected_host||!selected_host.powertool||selected_host.deleted"  class="btn btn-mini dropdown-toggle" data-toggle="dropdown">
            电源管理
            <span class="caret"></span>
        </button>
        <ul class="dropdown-menu">
            <li><a ng-click="do_start()">开机</a></li>
            <li><a ng-click="do_shutdown()">关机</a></li>
            <li><a ng-click="do_reboot()">重启</a></li>
            <li><a href="https://{{ selected_host.powercard_address }}" target="_blank">管理台</a></li>
        </ul>
    </div>
    <div class="btn-group">
        <button type="button" ng-disabled="!selected_host||selected_host.status!=1||selected_host.deleted" class="btn btn-mini" ng-click="do_activate()">激活</button>
    </div>
</div>